#  Copyright (c) 2020 - ~, WANGXI
#  
#  GRAMMA INNER COMMAND TEST TCL FILE
#  Used in NS-2 simulator
#  Clone from https://gitee.com/WangXi_Chn/ns2_modulelib
#  Note in https://www.yuque.com/wangxi_chn/kozrfl
#  
#  Change Logs:
#  Date           Author       Notes			Mail
#  2020-12-05     WangXi   	   first version	WangXi_Chn@foxmail.com

# append----------------------
set i "aaa"
append i "bbb" "ccc"
puts "$i"

# array option-------------------
set a(1) 1111
set a(2) 2222
set a(three) 3333

set array_index [array names a]
puts "a array's index is \" $array_index \" "

set array_elenum [array size a]
puts "a array's size is $array_elenum "

set array_point [array startsearch a]
puts "a array's find-point is $array_point "

set array_nextele [array nextelement a $array_point]
puts "a array's next element is $a($array_nextele) with the find-point is $array_point "


# ...
# find others in 《网络模拟器的原理和应用》王辉 西北工业大学出版社 Page 33 - 40



#/************************ (C) COPYRIGHT 2020 WANGXI **************END OF FILE****/
